{% extends "dynamic/base.html" %}

{% load i18n adminmedia %}

{% block stylesheet %}{% admin_media_prefix %}css/dashboard.css{% endblock %}
{% block bodyclass %}change-list{% endblock %}
{% block coltype %}flex{% endblock %}

{% block extrahead %}{{ block.super }}

<style>
    #content-main {
        width: 100%;
    }

    .files {
        margin-left: 20px;
        margin-bottom: 10px;
        border: 1px solid #eee;
    }

    .files td {
        vertical-align: middle;
    }
</style>
{% endblock extrahead %}

{% block content %}
<div id="content-main">
    
    <div style="font-weight: bold; font-size: 1.2em; padding: 10px">
        {% trans "Type the new path for the following files:" %}
    </div>

    <form method="post">

        <table class="files">
            <thead>
                <tr>
                    <th>{% trans "Filename" %}</th>
                    <th>{% trans "New path" %}</th>
                </tr>
            </thead>

            {% for file in files_to_move %}
            <tr>
                <td>PROJECT ROOT{{ current_path }}/{{ file }}</td>
                <td><input name="path"/></td>
            </tr>
            {% endfor %}
        </table>

        <input type="hidden" name="confirm" value="1"/>
        <input type="submit" value="{% trans "Move" %}"/>

    </form>

</div>
{% endblock content %}

